package com.ldw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ldw.mapper.dos.Archives;
import com.ldw.pojo.Article;
import com.ldw.vo.PageParams;
import com.ldw.vo.Result;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper extends BaseMapper<Article> {
    //  Result listArticle(PageParams params);
    //查询最热标签
    List<Article> hotArticle(int limit);

    List<Archives> listArchives();

    List<Article> queryArticlerByTagId(Long tagId);
}
